package org.kessy.common.model.meta;

/***
 * 
 * @author leo.liu
 * Meta Dictionary, represent the Dictionary value
 */
public class MDictionary extends MBase{

    /**
     * 
     */
    private static final long serialVersionUID = -4032355290450318741L;

    private String value;
    private String label;
    private Long orderNum;
    private MAttribute attribute;
    
    public String getValue() {
        return value;
    }
    
    public void setValue(String value) {
        this.value = value;
    }
    
    public String getLabel() {
        return label;
    }
    
    public void setLabel(String label) {
        this.label = label;
    }
    
    public Long getOrderNum() {
        return orderNum;
    }
    
    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }
    
    public MAttribute getAttribute() {
        return attribute;
    }
    
    public void setAttribute(MAttribute attribute) {
        this.attribute = attribute;
    }
    
    @Override
    public void copyShallow(MBase mBase) {
        super.copyShallow(mBase);
        
        MDictionary mDictionary = (MDictionary)mBase;
        this.value = mDictionary.getValue();
        this.label = mDictionary.getLabel();
        this.orderNum = mDictionary.getOrderNum();
    }
}
